<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice"%>

<f:view>

	<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Login</title>
	<link rel="stylesheet" type="text/css" href="./xmlhttp/css/rime/rime.css" />
	</head>
	<body>
		<ice:form>			
			<ice:panelCollapsible expanded="true" >
				<f:facet name="header">
					<ice:panelGroup>
						<ice:outputText value="Login" />					
					</ice:panelGroup>				
				</f:facet>
				<ice:panelGroup>
					<ice:panelGrid columns="2">
						<ice:outputLabel id="labelUsuarioLogin" value="Usuário" for="fieldUsuarioLogin" />
						<ice:inputText id="fieldUsuarioLogin" value="#{usuarioAction.usuario.login}" required="true"/>					
					
						<ice:outputLabel id="labelUsuarioSenha" value="Senha" for="fieldUsuarioSenha" />
						<ice:inputSecret id="fieldUsuarioSenha" value="#{usuarioAction.usuario.senha}" required="true"/>						
						
						<ice:commandButton id="entrar" value="Entrar >>" action="#{usuarioAction.autenticar}"/>
						<ice:messages style="color: red;" showSummary="false" showDetail="true"/>
					</ice:panelGrid>
				</ice:panelGroup>
			</ice:panelCollapsible>
				
		</ice:form>	
	</body>
	</html>
</f:view>